<h1>Listado de Culturas</h1>
<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<br/>
<% if @cultural_heritage_cultures.size > 0 %>
<fieldset id="agrupacion">
  <legend>Busqueda</legend>
    </>
  <% form_tag url_for(:action=>"update_table"),{:id =>"cultures_form_search"} do -%>
<p class="two-col"><label></label><%= text_field_tag "search_name" %></p>
<input class="button" name="Buscar" value="Buscar" id="cultures_search" type="submit" /><span id="loading_search" style="display:none"></span>

<% end %>

</fieldset>

<br></br>
<div id = "cultures_table">
<%=  render :partial=>"table"%>
 
</div>
<% else %>
  <p>Ninguna Cultura Encontrada</p>
<% end %>
  <br />
<% if (user_signed_in? && ([2,4].include?(current_user.role))) %>
<p><%= link_to 'Nueva Cultura', new_cultural_heritage_culture_path %></p>
<%end%>
<fieldset class="column-right4">
  <%= link_to 'Búsqueda en Mapa de Culturas',{:controller => '/cultural_heritage/cultures', :action => 'map_search', :id => 1}%>
</fieldset>